When you install the CygNet ODBC driver, a Data Source Name (DSN) called Default is added to your system. Upon initialization this DSN is configured to connect to all CygNet sites and services (Site.Service pairs) within the active CygNet domain. (You can later discover CygNet services from ODBC that were started after the applicable DSN was established.)
|
| Sample Default ODBC Driver Setup |
Discovering many sites and services at once might slow performance. To improve performance and reduce connection time, you can create and apply service filters. Service filters constrain the initial set of services used to generate the schema.
You can create additional DSNs to connect to specific sites and services, combinations of sites and services, or to no services at all. For example, create a DSN that connects to only UIS service types (*.UIS), to a single site (MYSITE.*), or to no services by using the <NOSERVICES> filter. Apply a filter only to affect connections at ODBC initialization. After ODBC start up, you can search for information from any site or service on the active domain. When you successfully communicate with a new service, its tables are dynamically added to the schema.
To Create New DSNs

You can modify service filter settings using script, to enable screens to override the configured service filter associated with the DSN.
Example
The driver connects to MYSITE.FAC, regardless of the service filter specified in the DSN settings.
|
using (DbConnection conn = new OdbcConnection("DSN=CygNet;ServiceFilter=MYSITE.FAC")) { conn.Open();
[… …] } |